<#assign pageSize = parameters.pageInfo.pageSize/>
<#assign pageNo = parameters.pageInfo.pageNo/>
<#assign totalCount = parameters.pageInfo.totalCount/>
<#assign maxPageNo = parameters.pageInfo.maxPageNo/>
<#assign minPageNo = parameters.pageInfo.minPageNo/>
<#assign currentUrl = parameters.url + "&"/>

<table class="pageInfo">
	<tr><td nowrap>
	<@s.text name="pageinfo.info">
    	<@s.param>${totalCount}</@s.param>
    	<@s.param>${pageNo}</@s.param>
    	<@s.param>${maxPageNo}</@s.param>
 	</@s.text> 
	&nbsp;
    <#if pageNo!=1>
       <a href="${currentUrl}pageNo=1"><@s.text name="pageinfo.first"/></a>
		<a href="${currentUrl}pageNo=${pageNo-1}"><@s.text name="pageinfo.previous"/></a>
	</#if>
     
	<#list minPageNo..maxPageNo as x>
		<a href="${currentUrl}pageNo=${x}">${x}</a>
	</#list>
        
	<#if pageNo!=maxPageNo>
		<a href="${currentUrl}pageNo=${pageNo+1}"><@s.text name="pageinfo.next"/></a>
		<a href="${currentUrl}pageNo=${maxPageNo}"><@s.text name="pageinfo.last"/></a>
	</#if>

    <input type="text" id="goid" size="1" />
	<a href="javascript:onGoChick();"><@s.text name="pageinfo.search"/></a>
	</td></tr>
</table>

<script type="text/javascript">
	function onGoChick(){
		var go = document.getElementById("goid");
		if (go.value){
		  location.href = "${currentUrl}pageNo=" + go.value;
		}
	}
</script>